#include <iostream>
#include "list.h"

using namespace std;

int main()
{
	Head node;
	char answer;
	int number;

	do
	{
		cout << "Enter a value: ";
		cin >> number;

		node.createList(number);

		cout << "Would you like to enter another number? ";
		cin >> answer;
	}while(answer == 'y' || answer == 'Y');

	cout << "\n\nUnsorted List: \n\n";

	node.printList();
	node.quickSort();

	cout << "\n\nSorted List: \n\n";
	node.printList();

	cout << "\n\nReverse List: \n\n";
	node.reversePrint();

	return 0;
}		